<div class="xxSort">

    <div class="item">

        <label>分类:</label>

        <ul class="sortul">
            <li <?php if (empty($pid)) {
                echo 'class="sour"';
            } ?>>
                <a href="<?php echo UU('Info/list/index',array('pid'=>0,'cid'=>$cid,'area'=>$area,'m1'=>$m1,'m2'=>$m2));?>">全部</a>
                <?php if (empty($pid)) { ?>
                    <i class="sour_current_style"></i>
                <?php } ?>

            </li>
            <?php
            $secondCategory = 0;
            foreach ($category as $k => $v) {  ?>

                <?php if ($v['pid'] == 0) { ?>
                    <li
                        <?php if ((int)$pid == (int)$v['id']) {
                            echo 'class="sour"';
                        } ?>
                    >
                        <a href="<?php echo UU('Info/list/index',array('pid'=>$v['id'],'cid'=>$cid,'area'=>$area,'m1'=>$m1,'m2'=>$m2));?>"><?php echo $v['category']; ?></a>
                        <?php if ((int)$pid == (int)$v['id']) { ?>
                            <i class="sour_current_style"></i>
                        <?php } ?>
                    </li>
                <?php }else{
                    $secondCategory ++;
                } ?>
            <?php } ?>

            <li class="xxli01"><a href="{$config['cfg_basehost']}fabu/" target="_blank">免费发布信息</a></li>

            <li class="xxli01"><a href="/register">商家注册</a></li>

        </ul>

        <div class="clear"></div>

    </div>

    <?php if($secondCategory > 0){?>
        <div class="item"><label>详细:</label>
            <ul class="sortul">
                <li <?php $secondCategory = 0; if ((int)($cid) == 0) {
                    echo 'class="sour"';
                } ?>>
                    <a href="<?php echo UU('Info/list/index',array('pid'=>$pid,'cid'=>0,'area'=>$area,'m1'=>$m1,'m2'=>$m2));?>">全部</a>
                    <?php if ((int)($cid) == 0) { ?>
                        <i class="sour_current_style"></i>
                    <?php } ?>
                </li>
                <?php foreach ($category as $k => $v) { ?>
                    <?php if ((int)$v['pid'] != 0) { ?>
                        <li <?php if ( (int)$cid === (int)$v['id']) {
                            echo 'class="sour"';
                            echo "data-id=".$cid."-".$v['id'];
                        } ?>>

                            <a href="<?php echo UU('Info/list/index',array('pid'=>$pid,'cid'=>$v['id'],'area'=>$area,'m1'=>$m1,'m2'=>$m2)); ?>"><?php echo $v['category']; ?></a>
                            <?php if ( (int)$cid === (int)$v['id']) { ?>
                                <i class="sour_current_style"></i>
                            <?php } ?>
                        </li>
                    <?php } ?>
                <?php } ?>
            </ul>
            <div class="clear"></div>

        </div>
    <?php } ?>
    <div class="item"><label>区域:</label>
        <ul class="sortul">
            <li <?php if ((int)$area == 0) {
                echo 'class="sour"';
            } ?>>

                <a href="<?php echo  UU('Info/list/index',array('pid'=>$pid,'cid'=>$cid,'area'=> 0,'m1'=>$m1,'m2'=>$m2));?>">全部</a>
                <?php if ((int)$area == 0) { ?>
                    <i class="sour_current_style"></i>
                <?php } ?>
            </li>
            <?php foreach (C('city_area') as $k => $v) { ?>
                <li <?php if ((int)$area >= 0 && (int)$area === (int)$k) {
                    echo 'class="sour"';
                } ?>>

                    <a href="<?php echo UU('Info/list/index',array('pid'=>$pid,'cid'=>$cid,'area'=> $k,'m1'=>$m1,'m2'=>$m2));?>"><?php echo $v; ?></a>
                    <?php if ((int)$area >= 0 && (int)$area === (int)$k) { ?>
                        <i class="sour_current_style"></i>
                    <?php } ?>
                </li>
            <?php } ?>
        </ul>
        <div class="clear"></div>

    </div>
    <div class="item">

        <label>价格：</label>

        <ul class="sortul">

            <li><input type="text" value="{$m1}" name="m1" id="m1" class="textm"/> -
                <input type="text" value="{$m2}" name="m2" id="m2" class="textm"/>(元)
                <a  class="buttonsx" alt="价格筛选"

                     onclick="acForm('<?php echo UU('Info/list/index',array('pid'=>$pid,'cid'=>$cid,'area'=> $area,'m1'=>'|s|','m2'=>'|e|'));
                     //$config['cfg_basehost'] . 'list/' . $pid."-".$cid."-".$area."-[s]-[e].html" ;
                     ?>')"/>价格筛选</a>
            </li>

        </ul>

        <div class="clear"></div>

    </div>

    <div class="pagelist1">

        <table border="0" align="center" cellspacing="0" cellpadding="0">

            <tr>

                <td>
                    {$pageShow}
                </td>
                <td width="210">
                    <div class="item1"><label>显示方式：</label>
                        <ul class="sortul1">
                            <li <?php if ($displaytype == 0) {
                                echo 'class="sour"';
                            } ?> onclick="changedisplaytype(0)">方框
                            </li>
                            <li <?php if ($displaytype == 1) {
                                echo 'class="sour"';
                            } ?>onclick="changedisplaytype(1)">列表
                            </li>
                        </ul>
                    </div>
                </td>

            </tr>

        </table>

    </div>

</div>